Fixed GtkToolPalette ->forall implementation to be gtk_widget_destroy friendly
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Mon, 31 Jan 2011 19:57:05 +0000 (04:57 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Mon, 31 Jan 2011 20:02:56 +0000 (05:02 +0900)
commita37976dae05b6a7833b77025568848f329d67af8
treea8289512d42fb304d3b9baf2943a5b059c32bf90
parentddb4b3ebe2fca5eb5da6bc6a70549885df10faaf
Fixed GtkToolPalette ->forall implementation to be gtk_widget_destroy friendly

The forall() loop was buggy as it was skipping items in the list when
the current item gets removed from the groups array as a result of
calling the callback (causing memory leaks).
gtk/gtktoolpalette.c